package com.mars.admin.modules.banner.service;

import com.mars.admin.modules.banner.entity.Banner;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

public interface BannerService extends IService<Banner> {

    void add(Banner banner);

    void updateCategory(Banner banner);

    void delete(Long id);

    List<Banner> listAll(String type);

    /**
     * 分页查询轮播图
     */
    Page<Banner> pageBanner(Page<Banner> page, String title, String type, String position, Integer status);

    /**
     * 批量删除轮播图
     */
    void batchDelete(List<Long> ids);
}
